#include <windows.h>
#include <stdio.h>
int main(int argc,char **argv){
	HMODULE hmod_libname;
	FARPROC fprc_func;
	if(argc<3){
		printf("%s <libname> <function name>\n",argv[0]);
		exit(-1);
	}
	hmod_libname=LoadLibrary(argv[1]);
	fprc_func=GetProcAddress(hmod_libname,argv[2]);
	if(fprc_func==NULL) {
		printf("arwin coundn'n find function name");
		exit(-1);
	}
	printf("%s is locate at 0x%08x in %s\n",argv[2],(unsigned)fprc_func,argv[1]);
	
}